package com.woniuxy.cloud.carl.carlgoods.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * spu表
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_spu")
public class Spu implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * spuid
     */
    @TableId(value = "spu_id", type = IdType.AUTO)
    private Long spuId;

    /**
     * spu名称
     */
    private String spuName;

    /**
     * 主图
     */
    private String spuImage;

    /**
     * 品类Id
     */
    private Long categoryId;

    /**
     * 状态     1、上架    2、下架
     */
    private Integer spuStatus;

    /**
     * 总销量
     */
    private Integer spuSales;

    /**
     * 品类名称
     */
    private String categoryName;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 品牌名称
     */
    private String brand;


}
